# Contributor: Anders Björklund <anders.f.bjorklund@gmail.com>
# Maintainer: Hoang Nguyen <folliekazetani@protonmail.com>
pkgname=squashfuse
pkgver=0.5.0
pkgrel=0
pkgdesc="FUSE filesystem to mount squashfs archives"
url="https://github.com/vasi/squashfuse"
arch="all"
license="BSD-2-Clause"
makedepends="
	autoconf
	automake
	libtool
	fuse3-dev
	lz4-dev
	lzo-dev
	xz-dev
	zlib-dev
	zstd-dev
	"
checkdepends="squashfs-tools"
subpackages="$pkgname-dev $pkgname-libs $pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/vasi/squashfuse/archive/refs/tags/v$pkgver.tar.gz"

prepare() {
	default_prepare
	./autogen.sh
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
f85df8dba4c3e33831ef97b414ad20e9b8374146a3062b73960060a111233a12c3afdc987ba818a79606a44261684d9f0cb5a4c80c1fffa23d1f168c24a4de50  squashfuse-0.5.0.tar.gz
"
